package day1127_1;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;

public class D2 {
    public static void main(String[] args) throws  Exception{
        Class.forName("com.mysql.cj.jdbc.Driver");
        Connection  conn= DriverManager.getConnection("jdbc:mysql://localhost:3306/big1_1120?serverTimezone=GMT%2B8&useSSL=false",
                "root","root");


        PreparedStatement  pstm=conn.prepareStatement("create database big1");
        pstm.executeUpdate();

        conn.close();//5.   断开网络连接：  conn.close();
    }
}
